#include "free_stimulate_params_page.h"
#include "ui_free_stimulate_params_page.h"

free_stimulate_params_page::free_stimulate_params_page(QWidget *parent): QWidget(parent), ui(new Ui::free_stimulate_params_page)
{
    ui->setupUi(this);

    // 初始化信号和槽
    initConnection();
}

/** 初始化信号和槽
 * @brief free_stimulate_params_page::initConnection
 */
void free_stimulate_params_page::initConnection()
{
    // 确认
    connect(ui->btnConfirm, &QPushButton::clicked, this, &free_stimulate_params_page::onConfirm);

    // 取消
    connect(ui->btnCancel, &QPushButton::clicked, this, &free_stimulate_params_page::onBack);
}

/** 确认
 * @brief free_stimulate_params_page::onConfirm
 */
void free_stimulate_params_page::onConfirm()
{
    emit requestToBack();
}

/** 取消
 * @brief free_stimulate_params_page::onBack
 */
void free_stimulate_params_page::onBack()
{
    emit requestToBack();
}

free_stimulate_params_page::~free_stimulate_params_page()
{
    delete ui;
}
